import request from '@/utils/request'

/**
 * http://192.168.20.109:3000/project/37/interface/api/1281
 * 查询信息类型列表
 * @param {*} data 
 * @returns 
 */
const noticesTypeList = (data, params) => {
  return request({
    url: '/noticesType/list',
    method: 'post',
    data: data,
    params: params
  })
}

/**
 * http://192.168.20.109:3000/project/37/interface/api/1344
 * 新增信息类型
 * @param {*} data 
 * @returns 
 */
const addNoticesType = (data) => {
  return request({
    url: '/noticesType/add',
    method: 'post',
    data: data
  })
}

/**
 * http://192.168.20.109:3000/project/37/interface/api/1358
 * 编辑信息类型
 * @param {*} data 
 * @returns 
 */
const updateNoticesType = (data) => {
  return request({
    url: '/noticesType/update',
    method: 'post',
    data: data
  })
}

/**
 * http://192.168.20.109:3000/project/37/interface/api/1365
 * 信息类型详情
 * @param {*} data 
 * @returns 
 */
const noticesTypeDetail = (data) => {
  return request({
    url: '/noticesType/detail',
    method: 'post',
    data: data
  })
}

/**
 * http://192.168.20.109:3000/project/37/interface/api/1351
 * 删除信息类型
 * @param {*} data 
 * @returns 
 */
const deleteNoticesType = (data) => {
  return request({
    url: '/noticesType/delete',
    method: 'post',
    data: data
  })
}

/**
 * http://192.168.20.109:3000/project/37/interface/api/952
 * 查询信息方法
 * @param {*} data 
 * @returns 
 */
const noticesList = (data, params) => {
  return request({
    url: '/notices/list',
    method: 'post',
    data: data,
    params: params
  })
}

/**
 * http://192.168.20.109:3000/project/37/interface/api/1330
 * 查询信息方法
 * @param {*} data 
 * @returns 
 */
const addNotices = (data) => {
  return request({
    url: '/notices/add',
    method: 'post',
    data: data
  })
}

/**
 * http://192.168.20.109:3000/project/37/interface/api/1309
 * 新增信息方法
 * @param {*} data 
 * @returns 
 */
const updateNotices = (data) => {
  return request({
    url: '/notices/update',
    method: 'post',
    data: data
  })
}

/**
 * http://192.168.20.109:3000/project/37/interface/api/1337
 * 编辑信息方法
 * @param {*} data 
 * @returns 
 */
const deleteNotices = (data) => {
  return request({
    url: '/notices/delete',
    method: 'post',
    data: data
  })
}

/**
 * http://192.168.20.109:3000/project/37/interface/api/973
 * 编辑信息方法
 * @param {*} data 
 * @returns 
 */
const noticesDetail = (data) => {
  return request({
    url: '/notices/detail',
    method: 'post',
    data: data
  })
}

export default {
  noticesTypeList,
  addNoticesType,
  updateNoticesType,
  deleteNoticesType,
  noticesTypeDetail,
  noticesList,
  addNotices,
  updateNotices,
  deleteNotices,
  noticesDetail
}